import http from '@/utils/request.js'

export default {
    list: {
        name: '获取积分计算关联P列表',
        url: `${import.meta.env.VITE_API_URL}/pointsRuleP/list`,
        async get (data) {
            return await http.get(this.url, data)
        }
    },

    add: {
        name: '添加新积分计算关联P',
        url: `${import.meta.env.VITE_API_URL}/pointsRuleP/add`,
        async post (data) {
            return await http.post(this.url, data)
        }
    },

    update: {
        name: '更新积分计算关联P',
        url: `${import.meta.env.VITE_API_URL}/pointsRuleP/update`,
        async post (data) {
            return await http.post(this.url, data)
        }
    },

    delete: {
        name: '删除积分计算关联P',
        url: `${import.meta.env.VITE_API_URL}/pointsRuleP/delete`,
        async post (data) {
            return await http.post(this.url, data)
        }
    }
}